/**
 * 合并nacos、config.js、应用的三者配置项
 */
let RPConfigFromXHR = localStorage.getItem('RPConfigFromXHR')
if (RPConfigFromXHR) {
    RPConfigFromXHR = JSON.parse(RPConfigFromXHR)
    RPConfigFromXHR = {
       // 登出地址 
        cas_logout: RPConfigFromXHR.logoutUrl,
        ripples_mgt_url: RPConfigFromXHR.mgtUrl,
        ripples_setting_url: RPConfigFromXHR.settingUrl,
        logintype: RPConfigFromXHR.loginType
    }
}

let _RPConfig = window.RPConfig
_RPConfig && _RPConfig.items &&
  _RPConfig.items.forEach(item => {
    _RPConfig[item.key] = item.value
  })

_RPConfig = _RPConfig || {}
window.RPConfig = { ...APP.CONFIG, ..._RPConfig, ...RPConfigFromXHR}
